-
Notifications
You must be signed in to change notification settings - Fork 602
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce .build_ignore file #2089
Conversation
Thanks for contributing! It looks like bundler ran into an issue parsing this change. This is the output:
Once this is addressed, I'll take a look again and make sure everything is good! |
18a0608
to
06642a1
Compare
@tannalynn My bad! I missed out a bracket, since there were no tests for this I just added the snippet and pushed for feedback. I have made changes and tried building the gem as well. |
Files to be ignored during build are added in a simple text file, newline seperated. We then iterate and reject.
06642a1
to
eabb0eb
Compare
@tannalynn I had force pushed the changes to keep the commit history clean of minor changes - I forgot to confirm if that was a habit followed here. You might want to delete and pull this branch again to avoid conflicts. Sorry about that, will restrict to normal push. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this! The tests failing are unrelated to this PR and are already fixed on dev, so I'm going to go ahead and merge this. We appreciate the contribution!
The test/agent_helper.rb file was overlooked in our switch to the new file inclusion process introduced in PR#2089 #2089 This file is required for the public API NewRelic::Agent.require_test_helper. Furthermore, build.rb was still included. This file used to be generated with Jenkins during our release process and has not been created with a release since version 6.13.0.
Relates to #1150
The requirement was to reduce the number of files that were added to the release build.
Introducing a new simple text file
.build_ignore
which containst the list of files to be rejected. In the gemspec file we update thereject
method definition to reject files listed in this file. It involes nested loops at the moment so not the best of efficiency, although we are dealing with very less amount of data hence should not take up too much time. We can always look into optimisations. We can treat this as a starting point.Changes are only currently added to
newrelic_rpm.gemspec
to get feedback.This is one of my first contribution here, so aplogies in advance if I have broken any contribution guidelines uknowingly. Please call it out so that I can correct them.